import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/login/Login'
import activiRouters from './extend/activiti'
import managerRouters from './extend/manager'


Vue.use(Router)

function getRouters() {
    var list = [{
        path: '/login',
        name: 'Login',
        component: Login,
        meta: {
            login: false,
            type: "manager",
        }
    }];
    list = list.concat(activiRouters.getRouter());
    list = list.concat(managerRouters.getRouter());
    return list;
}

export default new Router({
    mode: 'history',
    routes: getRouters(),
})
